package user;

import book.BookList;
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;
import operation.IOperation;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-10-04
 * Time: 17:02
 */
abstract public class User {
    protected String name;
    protected IOperation[] iOperation;
    Scanner scanner = new Scanner(System.in);
    abstract public int menu();
    public void doWork(int choice, BookList bookList){
        iOperation[choice].work(bookList);
    }
}
